package com.rzcode.coinex.kernel.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rzcode.coinex.kernel.common.enums.CommonStatusEnum;
import com.rzcode.coinex.kernel.common.enums.SysHelpClassificationEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author Bridge.Xu
 * @description 系统帮助
 * @date 2019/1/9 9:38
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_help")
public class SysHelp {

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "帮助标题")
    private String title;

    @ApiModelProperty(value = "分类")
    private SysHelpClassificationEnum sysHelpClassification;

    @ApiModelProperty(value = "图片地址")
    private String imgUrl = "";

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "状态")
    private CommonStatusEnum status = CommonStatusEnum.NORMAL;

    /**
     * 类型不为二维码时有效，为新手入门，充值指南，交易指南等的具体内容
     */
    @ApiModelProperty(value = "指南")
    private String content = "";

    @ApiModelProperty(value = "作者")
    private String author = "admin";

    @ApiModelProperty(value = "排序")
    private int sort = 0 ;

    /**
     * 是否置顶（0，置顶  1，不置顶（默认））
     */
    @ApiModelProperty(value = "是否置顶")
    private String isTop;

    /**
     * 文章语言
     */
    @ApiModelProperty(value = "文章语言")
    private String lang = "CN";

}
